package tau.pimpmyfreedb.common.types;

import tau.pimpmyfreedb.dal.DataType;
import tau.pimpmyfreedb.dal.IDataItem;

public class Album extends MusicItem {
    public static final int UKNOWN_YEAR = 0;
    private int year;
    private String genre;

    // constructors

    public Album(int id, String name, String genre, int year,
	    String extendedData) throws IllegalArgumentException {
	super(id, name, extendedData);
	this.year = year;
    }

    public Album(String name) {
	this(IDataItem.NewItemId, name, null, Album.UKNOWN_YEAR, null);
    }

    public String getGenre() {
	return genre;
    }

    public int getYear() {
	return year;
    }

    public DataType getDataType() {
	return DataType.ALBUM;
    }
}
